﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shop.Core.Domain.Orders;
using Shop.Core.Data;
using Shop.Core.Data.Orders;

namespace Shop.Service.Orders
{
    public class OrderService : IOrderService
    {
        public IOrderRepository OrderRepository
        {
            get;
            protected set;
        }

        public OrderService(IOrderRepository orderRepository)
        {
            this.OrderRepository = orderRepository;
        }

        public Order GetOrderById(string orderId)
        {
            Order order = this.OrderRepository.GetById(orderId);

            //order.
            return order;
        }

        public IList<Core.Domain.Orders.Order> GetOrdersByIds(IList<string> orderIds)
        {
            throw new NotImplementedException();
        }

        public void DeleteOrder(Core.Domain.Orders.Order order)
        {
            throw new NotImplementedException();
        }

        public IList<Core.Domain.Orders.Order> GetOrdersByCustomerId(int customerId)
        {
            throw new NotImplementedException();
        }

        public void CreateOrder(Core.Domain.Orders.Order order)
        {
            throw new NotImplementedException();
        }

        public void ModifyOrder(Core.Domain.Orders.Order order)
        {
            throw new NotImplementedException();
        }

        public void CancelOrder(Core.Domain.Orders.Order order)
        {
            throw new NotImplementedException();
        }

        public Core.Domain.Orders.Order GetOrderByAuthorizationTransactionIdAndPaymentMethod(string authorizationTransactionId, string paymentMethodSystemName)
        {
            throw new NotImplementedException();
        }
    }
}
